From 32dc08666b5b8448113be6d4425885cd37c5d974 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sun, 16 May 1993 00:23:33 +0000 Subject: [PATCH] * xfaces.c (unload_color): Don't try to unload the standard black or white pixel. --- src/xfaces.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xfaces.c b/src/xfaces.c index e037d703812..225e9939445 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -406,7 +406,9 @@ unload_color (f, pixel) { Colormap cmap; Display *dpy = x_current_display; - if (pixel == FACE_DEFAULT) + if (pixel == FACE_DEFAULT + || pixel == BLACK_PIX_DEFAULT + || pixel == WHITE_PIX_DEFAULT) return; cmap = DefaultColormapOfScreen (DefaultScreenOfDisplay (x_current_display)); BLOCK_INPUT; -- 2.30.2